package pp.infrastructure.mysql.mapper.user;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<UserDO> {

    @Insert("INSERT INTO user (name, account, pwd, telephone)\n" +
            "VALUES (#{name}, #{account}, #{pwd}, #{telephone});")
    Boolean register(UserDO userDO);
}
